<?php
$old_password = array(
	'name'	=> 'old_password',
	'id'		=> 'old_password',
	'size' 	=> 30,
	'value' => set_value('old_password'),
        'class' => 'text'
);

$new_password = array(
	'name'	=> 'new_password',
	'id'		=> 'new_password',
	'size'	=> 30,
        'class' => 'text'
);

$confirm_new_password = array(
	'name'	=> 'confirm_new_password',
	'id'		=> 'confirm_new_password',
	'size' 	=> 30,
        'class' => 'text'
);

$change = array(
	'id'	=> 'change',
        'class' => 'submit',
        'value' =>'Change Password',
        'name' =>'change'
);

$reset = array(
	'id'	=> 'reset',
        'class' => 'submit',
        'value' =>'Reset',
        'name' =>'reset'
);
?>
<head>
    <?php $this->load->view('load_view'); ?>
</head>
<div class="col-wrap handin-wrap">
    <!--start col-->
    <div class="col handin">

        <div class="wrap-title">
            <p class="page-title">密码修改</p>
        </div>
        <p class="desc bg">
            页面提示：<?php echo $this->dx_auth->get_auth_error(); ?><?php echo form_error($old_password['name']); ?><?php echo form_error($new_password['name']); ?><?php echo form_error($confirm_new_password['name']); ?>
        </p>
        <div class="arrange manageform">
            <?php echo form_open($this->uri->uri_string()); ?>
                <p>
                    <label><?php echo form_label('Old Password', $old_password['id']); ?></label>
                    <?php echo form_password($old_password); ?>
                </p>
                <p>
                    <label><?php echo form_label('New Password', $new_password['id']); ?></label>
                    <?php echo form_password($new_password); ?>
                </p>
                <p>
                    <label><?php echo form_label('Confirm New Password', $confirm_new_password['id']); ?></label>
                    <?php echo form_password($confirm_new_password); ?>
                </p>
                <?php echo form_submit($change); ?>
                <?php echo form_reset($reset); ?>

            </form><?php echo form_close(); ?>
        </div>
    </div>
    <!--end col-->
</div>
<!--end col-wrap-->
<script>
    $(window.parent.document).find("ul.nav li a").removeClass("then");
    $(window.parent.document).find("a#change").attr("class","then");
</script>